import request from '/@/utils/request'
// 查询IP拦截列表
export function listFilterIntercept(query:object) {
  return request({
    url: '/api/v1/ipfilter/filterIntercept/list',
    method: 'get',
    params: query
  })
}
// 查询IP拦截详细
export function getFilterIntercept(id:number) {
  return request({
    url: '/api/v1/ipfilter/filterIntercept/get',
    method: 'get',
    params: {
      id: id.toString()
    }
  })
}
// 新增IP拦截
export function addFilterIntercept(data:object) {
  return request({
    url: '/api/v1/ipfilter/filterIntercept/add',
    method: 'post',
    data: data
  })
}
// 修改IP拦截
export function updateFilterIntercept(data:object) {
  return request({
    url: '/api/v1/ipfilter/filterIntercept/edit',
    method: 'put',
    data: data
  })
}
// 删除IP拦截
export function delFilterIntercept(ids:number[]) {
  return request({
    url: '/api/v1/ipfilter/filterIntercept/delete',
    method: 'delete',
    data:{
      ids:ids
    }
  })
}
